#ifndef MONTHLYREPORTDETAILDIALOG_H
#define MONTHLYREPORTDETAILDIALOG_H

#include <QDialog>
#include <QSqlDatabase>
#include <QSqlError>  // 添加这个头文件
#include <QDate>

namespace Ui {
class MonthlyReportDetailDialog;
}

class MonthlyReportDetailDialog : public QDialog
{
    Q_OBJECT

public:
    explicit MonthlyReportDetailDialog(int employeeId, const QString &toyName, const QString &processName, 
                                     const QString &startDate, const QString &endDate, double pieceRate, QWidget *parent = nullptr);
    ~MonthlyReportDetailDialog();

private:
    Ui::MonthlyReportDetailDialog *ui;
    int m_employeeId;
    QString m_toyName;
    QString m_processName;
    QString m_startDate;
    QString m_endDate;
    double m_pieceRate;
    
    void loadDetailData();
    void setupUI();
};

#endif // MONTHLYREPORTDETAILDIALOG_H